package com.driver.manage.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.driver.manage.mapper.TbVehicleMapper;
import com.driver.manage.domain.TbVehicle;
import com.driver.manage.service.ITbVehicleService;

/**
 * 车辆信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-06-28
 */
@Service
public class TbVehicleServiceImpl implements ITbVehicleService 
{
    @Autowired
    private TbVehicleMapper tbVehicleMapper;

    /**
     * 查询车辆信息
     * 
     * @param vehicleId 车辆信息主键
     * @return 车辆信息
     */
    @Override
    public TbVehicle selectTbVehicleByVehicleId(String vehicleId)
    {
        return tbVehicleMapper.selectTbVehicleByVehicleId(vehicleId);
    }

    /**
     * 查询车辆信息列表
     * 
     * @param tbVehicle 车辆信息
     * @return 车辆信息
     */
    @Override
    public List<TbVehicle> selectTbVehicleList(TbVehicle tbVehicle)
    {
        return tbVehicleMapper.selectTbVehicleList(tbVehicle);
    }

    /**
     * 新增车辆信息
     * 
     * @param tbVehicle 车辆信息
     * @return 结果
     */
    @Override
    public int insertTbVehicle(TbVehicle tbVehicle)
    {
        return tbVehicleMapper.insertTbVehicle(tbVehicle);
    }

    /**
     * 修改车辆信息
     * 
     * @param tbVehicle 车辆信息
     * @return 结果
     */
    @Override
    public int updateTbVehicle(TbVehicle tbVehicle)
    {
        return tbVehicleMapper.updateTbVehicle(tbVehicle);
    }

    /**
     * 批量删除车辆信息
     * 
     * @param vehicleIds 需要删除的车辆信息主键
     * @return 结果
     */
    @Override
    public int deleteTbVehicleByVehicleIds(String[] vehicleIds)
    {
        return tbVehicleMapper.deleteTbVehicleByVehicleIds(vehicleIds);
    }

    /**
     * 删除车辆信息信息
     * 
     * @param vehicleId 车辆信息主键
     * @return 结果
     */
    @Override
    public int deleteTbVehicleByVehicleId(String vehicleId)
    {
        return tbVehicleMapper.deleteTbVehicleByVehicleId(vehicleId);
    }
}
